package at.fpmedv.eclipse.helma.preferences;

import org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer;
import org.eclipse.jface.preference.IPreferenceStore;

import at.fpmedv.eclipse.helma.core.HelmaCorePlugin;


/**
 * Class used to initialize default preference values.
 */
public class HelmaPreferencesInitializer extends AbstractPreferenceInitializer {

	/*
	 * (non-Javadoc)
	 * 
	 * @see org.eclipse.core.runtime.preferences.AbstractPreferenceInitializer#initializeDefaultPreferences()
	 */
	public void initializeDefaultPreferences() {
		IPreferenceStore store = HelmaCorePlugin.getDefault().getPreferenceStore();
		store.setDefault(HelmaConstants.P_READ_SERVER_PROPS, true);
		store.setDefault(HelmaConstants.P_OVERRIDE_LOGDIR_SETTING, true);
		store.setDefault(HelmaConstants.P_GROUP_FUNCTIONS, true);
		store.setDefault(HelmaConstants.P_GROUP_SKINS, true);
		store.setDefault(HelmaConstants.P_GROUP_PROPERTIES, true);
	}

}
